import request from '@/utils/request'

// 查询课程结构列表
export function listStemCourseCon(query) {
  return request({
    url: '/stemCourseCon/list',
    method: 'get',
    params: query
  })
}

// 查询课程结构列表（排除节点）
export function listStemCourseConExcludeChild(stemCourseConId) {
  return request({
    url: '/stemCourseCon/list/exclude/' + stemCourseConId,
    method: 'get'
  })
}

// 查询课程结构详细
export function getStemCourseCon(stemCourseConId) {
  return request({
    url: '/stemCourseCon/' + stemCourseConId,
    method: 'get'
  })
}

// 新增课程结构
export function addStemCourseCon(data) {
  return request({
    url: '/stemCourseCon',
    method: 'post',
    data: data
  })
}

// 修改课程结构
export function updateStemCourseCon(data) {
  return request({
    url: '/stemCourseCon',
    method: 'put',
    data: data
  })
}

// 删除课程结构
export function delStemCourseCon(stemCourseConId) {
  return request({
    url: '/stemCourseCon/' + stemCourseConId,
    method: 'delete'
  })
}
